﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Wq.ManagerService.Entities
{
    /// <summary>
    /// 已开通的城市
    /// </summary>
    [TenantAttribute("manager")]
    [SugarTable("Wq_OpenCity")]
    public class OpenCityInfo
    {
        /// <summary>
        /// Id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public int RegionId { get; set; }

        /// <summary>
        /// 排序序号
        /// </summary>
        [SugarColumn(ColumnDescription = "排序序号")]
        public int Sequence { get; set; }
        /// <summary>
        /// 首字母
        /// </summary>
        [SugarColumn(ColumnDescription = "首字母", Length = 2)]
        public string FirstLetter { get; set; }

        [Navigate(NavigateType.OneToMany, nameof(BusinessCircleInfo.CityRegionId))]
        public List<BusinessCircleInfo> Business { get; set; }
        /// <summary>
        /// 热门
        /// </summary>
        [SugarColumn(ColumnDescription = "热门")]
        public bool Hot { get; set; }
    }
}
